package com.xnyzc.lhy.mis.feign.didi;

import com.xnyzc.lhy.common.entity.DiDiRv;
import com.xnyzc.lhy.mis.entity.param.worksheet.didi.*;
import com.xnyzc.lhy.mis.feign.fallback.didi.CustomerServiceOperationServiceFallback;
import com.xnyzc.lhy.mis.feign.fallback.didi.WorkServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "${feign.applicationName.didi}", fallback = WorkServiceFallback.class)
public interface WorkService {

    /**
     * 新建工单
     * @param createWorkParam
     * @return
     */
    @PostMapping("oa/didi/work/getCreateWork")
    DiDiRv getCreateWork(CreateWorkParam createWorkParam);

    /**
     * 更新工单
     * @param updateWorkParam
     * @return
     */
    @PostMapping("oa/didi/work/getUpdateWork")
    DiDiRv getUpdateWork(UpdateWorkParam updateWorkParam);

    /**
     * 解绑虚拟号接口
     * @param param
     * @return
     */
    @PostMapping("oa/didi/work/getUnbundleNumber")
    DiDiRv getUnbundleNumber(UnbundleVirtualNumberParam param);

    /**
     * 绑定虚拟号接口
     * @param virtualNumberParam
     * @return
     */
    @PostMapping("oa/didi/work/getBindNumber")
    DiDiRv getBindNumber(BindVirtualNumberParam virtualNumberParam);

    /**
     * 工单加急接口
     * @param workUrgentParam
     * @return
     */
    @PostMapping("oa/didi/work/getWorkUrgent")
    DiDiRv getWorkUrgent(WorkUrgentParam workUrgentParam);

}
